package com.example.localareanetworkchat.persistence.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.fasterxml.jackson.annotation.JsonProperty

@Entity(tableName = "chat_group_user")
data class ChatGroupUser(
    @JsonProperty("id")
    @PrimaryKey(autoGenerate = true)
    val id: Long,
    @JsonProperty("groupName")
    @ColumnInfo(name = "group_name")
    val groupName: String,
    @JsonProperty("userId")
    @ColumnInfo(name = "user_id")
    val userId: Long,
    @JsonProperty("userName")
    @ColumnInfo(name = "user_name")
    val userName: String,
    @JsonProperty("uid")
    @ColumnInfo(name = "uid")
    val uid: String,
    @JsonProperty("chatGroupId")
    @ColumnInfo(name = "chat_group_id")
    val chatGroupId: String,
    @JsonProperty("connectIpInt")
    @ColumnInfo(name = "connect_ip_int")
    val connectIpInt: Int,
    @JsonProperty("connectAddress")
    @ColumnInfo(name = "connect_address")
    val connectAddress: String
)
